//
//  JGAboutMeCell.m
//  JGRider
//
//  Created by 单启志 on 2018/1/30.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import "JGAboutMeCell.h"
@interface JGAboutMeCell()

@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *contentLab;
@property (weak, nonatomic) IBOutlet UIImageView *arrowImageV;

//0.5 第4个cell 时 为3
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lineConstH;
//16  第4个cell 时 为0
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lineConstLeftMargin;
@end

@implementation JGAboutMeCell

- (void)awakeFromNib {
    [super awakeFromNib];

    self.selectionStyle=UITableViewCellSelectionStyleNone;
}

-(void)setModel:(JGAboutMeModel *)model{

    _model=model;
    self.titleLab.text=model.title;
    self.contentLab.text=model.content;
    self.arrowImageV.hidden=!model.isCanPush;
    if (model.isFourCell) {
        self.lineConstH.constant=AdaptedWidth(3);
        self.lineConstLeftMargin.constant=0;
    }else{
        self.lineConstH.constant=AdaptedWidth(0.5);
     self.lineConstLeftMargin.constant=AdaptedWidth(16);

    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];


}

@end
